/**
 * 
 */
package org.t2.backstage.module.difchannel.quicksdk.model;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.gaming.service.repository.annotation.JvmCache;
import org.gaming.service.service.redis.OneToOneEntity;
import org.springframework.stereotype.Repository;

/**
 * 
 */
@Repository
@JvmCache(cacheTime = 0)
@Table(comment = "quicksdk渠道设置", dbAlias = "backdata")
public class QuickSdkSetting extends OneToOneEntity {
	@Id(strategy = Strategy.IDENTITY)
	@Column(comment = "数据ID")
	private long id;
	
	@Column(comment = "解码key")
	private String callbackkey = "01971841297349888356948425514695";
	@Column(comment = "签名key")
	private String md5Key = "jtjumo52jqq8mg1abbha181giapackhv";
	@Column(name = "login_url", comment = "登录验证URL")
	private String loginUrl = "http://checkuser.quickapi.net/v2/checkUserInfo";

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getLoginUrl() {
		return loginUrl;
	}

	public void setLoginUrl(String loginUrl) {
		this.loginUrl = loginUrl;
	}

	public String getCallbackkey() {
		return callbackkey;
	}

	public void setCallbackkey(String callbackkey) {
		this.callbackkey = callbackkey;
	}
	
	public String getMd5Key() {
		return md5Key;
	}

	public void setMd5Key(String md5Key) {
		this.md5Key = md5Key;
	}

	@Override
	public String redisOwnerKey() {
		return id + "";
	}
	
}
